'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  // 把这个方法注册到Controller上面
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
  }
  async list (){
  const {ctx} =this;
  ctx.body = '<h1>jspang blog list</h1>'
}
}



module.exports = HomeController;
